package com.fbee.smartcommunities.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fbee.smartcommunities.entity.Repair;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fbee.smartcommunities.entity.Visitor;
import io.minio.errors.*;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 汪佳泉
 * @since 2024-08-21
 */
public interface RepairService extends IService<Repair> {

    Page<Repair> getPage(Integer pageNo, Integer pageSize , String keyword, Boolean order,Boolean part);

    Boolean changeState(Long id,Boolean state,String key);

    Repair getById(Long id);

    Boolean addRepair(String type,
                Long time,
                String content,
                String contact,
                String address,
                MultipartFile[] files,
                Long openId) throws ServerException, InsufficientDataException, ErrorResponseException, IOException, NoSuchAlgorithmException, InvalidKeyException, InvalidResponseException, XmlParserException, InternalException;

    List<Repair> getListByUid(Long uid);
}
